home *** CD-ROM | disk | FTP | other *** search
/ Ham Radio 2000 #2 / Ham Radio 2000 - Volume 2.iso / HAMV2 / TCP_IP / TNOS230S / ASSOC.H < prev    next >
Encoding:
C/C++ Source or Header  |  1997-01-19  |  572 b   |  18 lines

  1. struct assocarray {
  2.     char            *name;
  3.     unsigned char        *macro;
  4.     struct assocarray    *prev;
  5.     struct assocarray    *next;
  6. };
  7. typedef struct assocarray Aarray;
  8. typedef struct assocarray *AarrayPtr;
  9. typedef struct assocarray **AarrayPPtr;
  10.  
  11. #define        NULLASSOC        ((AarrayPtr)0)
  12.  
  13. AarrayPtr assoc_find (AarrayPtr pool, char *label);
  14. unsigned char * assoc_lookup (AarrayPtr pool, char *label);
  15. void assoc_list (AarrayPtr pool, int maxlen, char *label);
  16. int assoc_addstr (AarrayPPtr pool, char *label, char *value, int sorted);
  17. int assoc_free (AarrayPPtr pool, char *label);
  18.